Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Configurable geoip data file and data field path #56

Merged
merged 2 commits into from
Dec 10, 2023

Conversation

jimmidyson
Copy link
Contributor

This commit adds the option to configure the geoip database file path
and the data field to use. The existing defaults are preserved by setting
default values for the new options.

This has been tested against the maxmind geolite2 database, using
country.iso_code and continent.code field paths.

@jimmidyson jimmidyson changed the title fix: Use remote IP if EDNS subnet is not present fix: Use remote IP if EDNS subnet is not present Oct 28, 2023
This commit adds the option to configure the geoip database file path
and the data field to use. The existing defaults are preserved by setting
default values for the new options.

This has been tested against the maxmind geolite2 database, using
`country.iso_code` and `continent.code` field paths.

Signed-off-by: Jimmi Dyson <[email protected]>
@jimmidyson jimmidyson changed the title fix: Use remote IP if EDNS subnet is not present feat: Configurable geoip data file and data field path Oct 31, 2023
Copy link
Member

@ytsarev ytsarev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks for the contribution!

@k0da could you take another look before we merge?

@ytsarev
Copy link
Member

ytsarev commented Nov 23, 2023

Hm, looks like we also need to check terratest run

Copy link
Collaborator

@k0da k0da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@ytsarev
Copy link
Member

ytsarev commented Dec 10, 2023

@jimmidyson @k0da i've reproduced the terratest failure locally and disable parallelism for the basic example test in 5db8eb8
Now it looks pretty stable after multiple local invocations and in this PR ( @jimmidyson , I pushed the fix to your feature branch, hope you don't mind :) )

As everything is green, I am merging this PR

@ytsarev ytsarev merged commit c3c5bbb into k8gb-io:main Dec 10, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants